<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>系统设置 - SaaS Dashboard</title>
    <!-- 引入Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- 引入Font Awesome -->
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <!-- 引入Chart.js -->
    <script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.0/dist/chart.umd.min.js"></script>
    <!-- 自定义CSS -->
    <style>
        /* 全局样式 */
        :root {
            --primary-color: #4f46e5;
            --secondary-color: #64748b;
            --success-color: #10b981;
            --warning-color: #f59e0b;
            --danger-color: #ef4444;
            --light-bg: #f8fafc;
            --dark-bg: #0f172a;
            --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--light-bg);
            color: #334155;
            overflow-x: hidden;
        }

        /* 加载动画 */
        .loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--primary-color);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }

        .loader.hidden {
            opacity: 0;
            visibility: hidden;
        }

        .loader::after {
            content: '';
            width: 50px;
            height: 50px;
            border: 5px solid #fff;
            border-top-color: transparent;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        /* 主容器 */
        .main-container {
            display: flex;
            min-height: 100vh;
        }

        /* 侧边栏 */
        .sidebar {
            width: 280px;
            background-color: #2c3e50;
            box-shadow: var(--card-shadow);
            transition: var(--transition);
            position: fixed;
            height: 100vh;
            overflow-y: auto;
            z-index: 100;
            color: white;
        }

        .sidebar.collapsed {
            width: 80px;
        }

        .sidebar.collapsed .logo-text {
            display: none;
        }

        .sidebar.collapsed .sidebar-nav a {
            justify-content: center;
            padding: 12px 0;
            font-size: 0;
        }

        .sidebar.collapsed .sidebar-nav a i {
            margin-right: 0;
            font-size: 16px;
        }

        .sidebar.collapsed .sidebar-header {
            justify-content: center;
        }

        

        /* 侧边栏头部 */
        .sidebar-header {
            padding: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid #34495e;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .logo-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--primary-color), #818cf8);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 1.5rem;
            font-weight: bold;
        }

        .logo-text {
            font-size: 1.25rem;
            font-weight: 700;
            color: white;
        }

        .sidebar-toggle {
            background: none;
            border: none;
            font-size: 1.25rem;
            color: white;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 4px;
            transition: var(--transition);
        }

        .sidebar-toggle:hover {
            background-color: #34495e;
            color: white;
        }

        /* 侧边栏导航 */
        .sidebar-nav {
            padding: 1rem 0;
        }

        .nav-item {
            margin-bottom: 0.25rem;
        }

        .nav-link {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem 1.5rem;
            color: white;
            text-decoration: none;
            transition: var(--transition);
            border-left: 3px solid transparent;
        }

        .nav-link:hover {
            background-color: #34495e;
            border-left-color: #3498db;
        }

        .nav-link.active {
            background-color: #34495e;
            color: white;
            border-left-color: #3498db;
            font-weight: 500;
        }

        .nav-icon {
            font-size: 1.125rem;
            width: 20px;
            text-align: center;
        }

        .nav-text {
            font-weight: 500;
        }

        /* 主内容区域 */
        .main-content {
            flex: 1;
            margin-left: 280px;
            transition: var(--transition);
        }

        .main-content.expanded {
            margin-left: 80px;
        }

        /* 顶部导航栏 */
        .top-nav {
            background-color: #fff;
            box-shadow: var(--card-shadow);
            padding: 1rem 2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: sticky;
            top: 0;
            z-index: 99;
        }

        .nav-left {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        /* 搜索框 */
        .search-box {
            position: relative;
        }

        .search-box input {
            width: 300px;
            padding: 0.75rem 1rem 0.75rem 2.5rem;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            font-size: 0.875rem;
            transition: var(--transition);
        }

        .search-box input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }

        .search-box .fa-search {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--secondary-color);
        }

        /* 导航右侧 */
        .nav-right {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        /* 通知图标 */
        .notification-icon {
            position: relative;
            font-size: 1.25rem;
            color: var(--secondary-color);
            cursor: pointer;
            transition: var(--transition);
        }

        .notification-icon:hover {
            color: var(--primary-color);
        }

        .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background-color: var(--danger-color);
            color: #fff;
            font-size: 0.75rem;
            padding: 0.125rem 0.375rem;
            border-radius: 50%;
            min-width: 18px;
            text-align: center;
        }

        /* 用户信息 */
        .user-info {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 8px;
            transition: var(--transition);
        }

        .user-info:hover {
            background-color: #f1f5f9;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-color), #818cf8);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-weight: 600;
        }

        .user-details {
            display: flex;
            flex-direction: column;
        }

        .user-name {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--dark-bg);
        }

        .user-role {
            font-size: 0.75rem;
            color: var(--secondary-color);
        }

        /* 内容区域 */
        .content {
            padding: 2rem;
        }

        /* 页面标题 */
        .page-title {
            margin-bottom: 2rem;
        }

        .page-title h1 {
            font-size: 1.875rem;
            font-weight: 700;
            color: var(--dark-bg);
            margin: 0;
        }

        /* 内容头部 */
        .content-header {
            margin-bottom: 2rem;
        }

        /* 设置卡片 */
        .settings-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
            gap: 1.5rem;
        }

        .setting-card {
            background-color: #fff;
            padding: 2rem;
            border-radius: 12px;
            box-shadow: var(--card-shadow);
            margin-bottom: 1.5rem;
            border: 1px solid #e2e8f0;
        }

        .setting-card h3 {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--dark-bg);
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .setting-card h3 i {
            color: var(--primary-color);
        }

        /* 表单样式 */
        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
        }

        .form-label {
            display: block;
            font-weight: 500;
            color: var(--dark-bg);
            margin-bottom: 0.5rem;
            font-size: 0.875rem;
        }

        .form-control {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            font-size: 0.875rem;
            transition: var(--transition);
            font-family: inherit;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }

        .form-control[disabled] {
            background-color: #f8fafc;
            color: #94a3b8;
            cursor: not-allowed;
        }

        /* 表单文本域 */
        .form-textarea {
            resize: vertical;
            min-height: 120px;
        }

        /* 表单复选框和单选按钮 */
        .form-check {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 1rem;
        }

        .form-check-input {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

        .form-check-label {
            font-size: 0.875rem;
            color: var(--dark-bg);
            cursor: pointer;
            user-select: none;
        }

        /* 按钮样式 */
        .btn {
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 8px;
            font-weight: 500;
            font-size: 0.875rem;
            transition: var(--transition);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn-primary {
            background-color: var(--primary-color);
            color: #fff;
        }

        .btn-primary:hover {
            background-color: #4338ca;
            transform: translateY(-1px);
        }

        .btn-secondary {
            background-color: #f1f5f9;
            color: var(--secondary-color);
            border: 1px solid #e2e8f0;
        }

        .btn-secondary:hover {
            background-color: #e2e8f0;
        }

        .btn-danger {
            background-color: var(--danger-color);
            color: #fff;
        }

        .btn-danger:hover {
            background-color: #dc2626;
            transform: translateY(-1px);
        }

        /* 按钮组 */
        .btn-group {
            display: flex;
            gap: 0.75rem;
            margin-top: 1.5rem;
        }

        /* 系统信息 */
        .system-info {
            background-color: #f8fafc;
            padding: 1.5rem;
            border-radius: 8px;
            margin-top: 1rem;
            border: 1px solid #e2e8f0;
        }

        .system-info-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem 0;
            border-bottom: 1px solid #e2e8f0;
        }

        .system-info-item:last-child {
            border-bottom: none;
        }

        .system-info-label {
            font-weight: 500;
            color: var(--secondary-color);
            font-size: 0.875rem;
        }

        .system-info-value {
            font-weight: 600;
            color: var(--dark-bg);
            font-size: 0.875rem;
        }

        /* 开关按钮 */
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
        }

        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #e2e8f0;
            transition: var(--transition);
            border-radius: 24px;
        }

        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: var(--transition);
            border-radius: 50%;
        }

        input:checked + .toggle-slider {
            background-color: var(--primary-color);
        }

        input:focus + .toggle-slider {
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }

        input:checked + .toggle-slider:before {
            transform: translateX(26px);
        }

        /* 响应式设计 */
        @media (max-width: 1200px) {
            .settings-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
            }

            .sidebar.open {
                transform: translateX(0);
            }

            .main-content {
                margin-left: 0;
            }

            .top-nav {
                padding: 1rem;
            }

            .search-box input {
                width: 200px;
            }

            .content {
                padding: 1rem;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .setting-card {
                padding: 1.5rem;
            }
        }

        /* 滚动条样式 */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f5f9;
        }

        ::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }
    </style>
</head>
<body>
    <!-- 加载动画 -->
    <div class="loader"></div>

    <div class="main-container">
        <!-- 侧边栏 -->
        <aside class="sidebar" id="sidebar">
            <div class="sidebar-header">
                <div class="logo">
                    <div class="logo-icon">S</div>
                    <span class="logo-text">平台端系统</span>
                </div>
                <button class="sidebar-toggle" id="sidebarToggle">
                <i class="fa fa-angle-left toggle-icon"></i>
            </button>
            </div>
            <nav class="sidebar-nav">
                <a href="index.html" class="nav-link">
                    <i class="fa fa-dashboard nav-icon"></i>
                    <span class="nav-text">仪表盘</span>
                </a>
                <a href="users.html" class="nav-link">
                    <i class="fa fa-users nav-icon"></i>
                    <span class="nav-text">用户管理</span>
                </a>
                <a href="analytics.html" class="nav-link">
                    <i class="fa fa-bar-chart nav-icon"></i>
                    <span class="nav-text">数据分析</span>
                </a>
                <a href="tenant-settings.html" class="nav-link">
                    <i class="fa fa-building nav-icon"></i>
                    <span class="nav-text">租户设置</span>
                </a>
                <a href="contracts.html" class="nav-link">
                    <i class="fa fa-file-text-o nav-icon"></i>
                    <span class="nav-text">合同管理</span>
                </a>
                <a href="settings.html" class="nav-link active">
                    <i class="fa fa-cog nav-icon"></i>
                    <span class="nav-text">系统设置</span>
                </a>
                <a href="notifications.html" class="nav-link">
                    <i class="fa fa-bell nav-icon"></i>
                    <span class="nav-text">通知中心</span>
                </a>
                <a href="reports.html" class="nav-link">
                    <i class="fa fa-file-text nav-icon"></i>
                    <span class="nav-text">报表管理</span>
                </a>
                <a href="orders.html" class="nav-link">
                    <i class="fa fa-shopping-cart nav-icon"></i>
                    <span class="nav-text">订单管理</span>
                </a>
                <a href="help.html" class="nav-link">
                    <i class="fa fa-question-circle nav-icon"></i>
                    <span class="nav-text">帮助中心</span>
                </a>
            </nav>
        </aside>

        <!-- 主内容 -->
        <main class="main-content" id="mainContent">
            <!-- 顶部导航栏 -->
            <nav class="top-nav">
                <div class="nav-left">
                    <button class="sidebar-toggle d-md-none" id="mobileSidebarToggle">
                        <i class="fa fa-bars"></i>
                    </button>
                    <div class="search-box">
                        <i class="fa fa-search"></i>
                        <input type="text" placeholder="搜索...">
                    </div>
                </div>
                <div class="nav-right">
                    <div class="notification-icon">
                        <i class="fa fa-bell"></i>
                        <span class="notification-badge">3</span>
                    </div>
                    <div class="user-info">
                        <div class="user-avatar">JD</div>
                        <div class="user-details">
                            <div class="user-name">John Doe</div>
                            <div class="user-role">管理员</div>
                        </div>
                        <i class="fa fa-chevron-down"></i>
                    </div>
                </div>
            </nav>

            <!-- 内容区域 -->
            <div class="content">
                <!-- 页面标题 -->
                <div class="page-title">
                    <h1>系统设置</h1>
                </div>

                <!-- 基本设置 -->
                <div class="setting-card">
                    <h3><i class="fa fa-cog"></i> 基本设置</h3>
                    <form>
                        <div class="form-row">
                            <div class="form-group">
                                <label class="form-label" for="site-name">网站名称</label>
                                <input type="text" class="form-control" id="site-name" value="SaaS Dashboard">
                            </div>
                            <div class="form-group">
                                <label class="form-label" for="site-url">网站URL</label>
                                <input type="text" class="form-control" id="site-url" value="https://example.com">
                            </div>
                        </div>
                        <div class="form-row">
                            <div class="form-group">
                                <label class="form-label" for="admin-email">管理员邮箱</label>
                                <input type="email" class="form-control" id="admin-email" value="admin@example.com">
                            </div>
                            <div class="form-group">
                                <label class="form-label" for="timezone">时区</label>
                                <select class="form-control" id="timezone">
                                    <option value="Asia/Shanghai" selected>Asia/Shanghai (UTC+8)</option>
                                    <option value="UTC">UTC</option>
                                    <option value="America/New_York">America/New_York (UTC-5)</option>
                                    <option value="Europe/London">Europe/London (UTC+0)</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="form-label" for="site-description">网站描述</label>
                            <textarea class="form-control form-textarea" id="site-description" rows="3">企业级SaaS管理系统，提供完整的用户管理、数据分析和报表功能。</textarea>
                        </div>
                        <div class="btn-group">
                            <button type="submit" class="btn btn-primary">
                                <i class="fa fa-save"></i>
                                保存设置
                            </button>
                            <button type="reset" class="btn btn-secondary">
                                <i class="fa fa-refresh"></i>
                                重置
                            </button>
                        </div>
                    </form>
                </div>

                <!-- 安全设置 -->
                <div class="setting-card">
                    <h3><i class="fa fa-shield"></i> 安全设置</h3>
                    <form>
                        <div class="form-group">
                            <div class="form-row">
                                <div class="form-group">
                                    <label class="form-label" for="password-policy">密码复杂度</label>
                                    <select class="form-control" id="password-policy">
                                        <option value="low">低 - 至少6位字符</option>
                                        <option value="medium" selected>中 - 至少8位，包含字母和数字</option>
                                        <option value="high">高 - 至少10位，包含字母、数字和特殊字符</option>
                                    </select>
                                </div>
                                <div class="form-group">
                                    <label class="form-label" for="session-timeout">会话超时（分钟）</label>
                                    <input type="number" class="form-control" id="session-timeout" value="30" min="5" max="120">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="form-check">
                                <input type="checkbox" class="form-check-input" id="enable-2fa">
                                <label class="form-check-label" for="enable-2fa">启用双因素认证</label>
                            </div>
                            <div class="form-check">
                                <input type="checkbox" class="form-check-input" id="enable-login-limit" checked>
                                <label class="form-check-label" for="enable-login-limit">启用登录失败限制</label>
                            </div>
                            <div class="form-check">
                                <input type="checkbox" class="form-check-input" id="enable-ssl" checked>
                                <label class="form-check-label" for="enable-ssl">强制HTTPS</label>
                            </div>
                        </div>
                        <div class="btn-group">
                            <button type="submit" class="btn btn-primary">
                                <i class="fa fa-save"></i>
                                保存设置
                            </button>
                        </div>
                    </form>
                </div>

                <!-- 邮件设置 -->
                <div class="setting-card">
                    <h3><i class="fa fa-envelope"></i> 邮件设置</h3>
                    <form>
                        <div class="form-row">
                            <div class="form-group">
                                <label class="form-label" for="smtp-host">SMTP服务器</label>
                                <input type="text" class="form-control" id="smtp-host" value="smtp.example.com">
                            </div>
                            <div class="form-group">
                                <label class="form-label" for="smtp-port">SMTP端口</label>
                                <input type="number" class="form-control" id="smtp-port" value="587">
                            </div>
                        </div>
                        <div class="form-row">
                            <div class="form-group">
                                <label class="form-label" for="smtp-username">SMTP用户名</label>
                                <input type="text" class="form-control" id="smtp-username" value="noreply@example.com">
                            </div>
                            <div class="form-group">
                                <label class="form-label" for="smtp-password">SMTP密码</label>
                                <input type="password" class="form-control" id="smtp-password" value="********">
                            </div>
                        </div>
                        <div class="form-row">
                            <div class="form-group">
                                <label class="form-label" for="smtp-from-name">发件人名称</label>
                                <input type="text" class="form-control" id="smtp-from-name" value="SaaS Dashboard">
                            </div>
                            <div class="form-group">
                                <label class="form-label" for="smtp-from-email">发件人邮箱</label>
                                <input type="email" class="form-control" id="smtp-from-email" value="noreply@example.com">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="form-check">
                                <input type="checkbox" class="form-check-input" id="smtp-ssl" checked>
                                <label class="form-check-label" for="smtp-ssl">使用SSL/TLS</label>
                            </div>
                        </div>
                        <div class="btn-group">
                            <button type="submit" class="btn btn-primary">
                                <i class="fa fa-save"></i>
                                保存设置
                            </button>
                            <button type="button" class="btn btn-secondary">
                                <i class="fa fa-paper-plane"></i>
                                发送测试邮件
                            </button>
                        </div>
                    </form>
                </div>

                <!-- 通知设置 -->
                <div class="setting-card">
                    <h3><i class="fa fa-bell"></i> 通知设置</h3>
                    <form>
                        <div class="form-group">
                            <div class="form-check">
                                <input type="checkbox" class="form-check-input" id="notify-user-register" checked>
                                <label class="form-check-label" for="notify-user-register">用户注册通知</label>
                                <span style="margin-left: auto;">
                                    <label class="toggle-switch">
                                        <input type="checkbox" checked>
                                        <span class="toggle-slider"></span>
                                    </label>
                                </span>
                            </div>
                            <div class="form-check">
                                <input type="checkbox" class="form-check-input" id="notify-order-create" checked>
                                <label class="form-check-label" for="notify-order-create">新订单通知</label>
                                <span style="margin-left: auto;">
                                    <label class="toggle-switch">
                                        <input type="checkbox" checked>
                                        <span class="toggle-slider"></span>
                                    </label>
                                </span>
                            </div>
                            <div class="form-check">
                                <input type="checkbox" class="form-check-input" id="notify-payment-success">
                                <label class="form-check-label" for="notify-payment-success">支付成功通知</label>
                                <span style="margin-left: auto;">
                                    <label class="toggle-switch">
                                        <input type="checkbox">
                                        <span class="toggle-slider"></span>
                                    </label>
                                </span>
                            </div>
                            <div class="form-check">
                                <input type="checkbox" class="form-check-input" id="notify-system-alerts" checked>
                                <label class="form-check-label" for="notify-system-alerts">系统告警通知</label>
                                <span style="margin-left: auto;">
                                    <label class="toggle-switch">
                                        <input type="checkbox" checked>
                                        <span class="toggle-slider"></span>
                                    </label>
                                </span>
                            </div>
                        </div>
                        <div class="btn-group">
                            <button type="submit" class="btn btn-primary">
                                <i class="fa fa-save"></i>
                                保存设置
                            </button>
                        </div>
                    </form>
                </div>

                <!-- 系统信息 -->
                <div class="setting-card">
                    <h3><i class="fa fa-info-circle"></i> 系统信息</h3>
                    <div class="system-info">
                        <div class="system-info-item">
                            <span class="system-info-label">系统版本</span>
                            <span class="system-info-value">v1.0.0</span>
                        </div>
                        <div class="system-info-item">
                            <span class="system-info-label">最后更新</span>
                            <span class="system-info-value">2023-06-10 14:30:00</span>
                        </div>
                        <div class="system-info-item">
                            <span class="system-info-label">服务器时间</span>
                            <span class="system-info-value" id="server-time">2023-06-15 10:25:30</span>
                        </div>
                        <div class="system-info-item">
                            <span class="system-info-label">PHP版本</span>
                            <span class="system-info-value">8.1.10</span>
                        </div>
                        <div class="system-info-item">
                            <span class="system-info-label">数据库版本</span>
                            <span class="system-info-value">MySQL 8.0.30</span>
                        </div>
                    </div>
                    <div class="btn-group" style="margin-top: 1.5rem;">
                        <button type="button" class="btn btn-secondary">
                            <i class="fa fa-refresh"></i>
                            检查更新
                        </button>
                        <button type="button" class="btn btn-danger">
                            <i class="fa fa-trash"></i>
                            清除缓存
                        </button>
                    </div>
                </div>
            </div>
        </main>
    </div>

    <!-- 引入Bootstrap JS -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <!-- 自定义JS -->
    <script>
        // 页面加载动画
        window.addEventListener('load', () => {
            const loader = document.querySelector('.loader');
            loader.classList.add('hidden');
        });

        // 侧边栏切换
        const sidebarToggle = document.getElementById('sidebarToggle');
        const sidebar = document.getElementById('sidebar');
        const mainContent = document.getElementById('mainContent');
        const mobileSidebarToggle = document.getElementById('mobileSidebarToggle');

        sidebarToggle.addEventListener('click', () => {
            sidebar.classList.toggle('collapsed');
            mainContent.classList.toggle('expanded');
            // 切换按钮图标
            const toggleIcon = sidebarToggle.querySelector('.toggle-icon');
            if (sidebar.classList.contains('collapsed')) {
                toggleIcon.classList.remove('fa-angle-left');
                toggleIcon.classList.add('fa-angle-right');
            } else {
                toggleIcon.classList.remove('fa-angle-right');
                toggleIcon.classList.add('fa-angle-left');
            }
        });

        mobileSidebarToggle.addEventListener('click', () => {
            sidebar.classList.toggle('open');
        });

        // 点击主内容区域关闭侧边栏（移动端）
        mainContent.addEventListener('click', () => {
            if (sidebar.classList.contains('open')) {
                sidebar.classList.remove('open');
            }
        });

        // 更新服务器时间
        function updateServerTime() {
            const now = new Date();
            const timeString = now.toLocaleString('zh-CN', {
                year: 'numeric',
                month: '2-digit',
                day: '2-digit',
                hour: '2-digit',
                minute: '2-digit',
                second: '2-digit'
            });
            document.getElementById('server-time').textContent = timeString;
        }

        // 每秒更新服务器时间
        setInterval(updateServerTime, 1000);
        updateServerTime();
    </script>
</body>
</html>